package File;

import java.nio.file.Path;
import java.nio.file.Paths;

public class PathAnalysis {
    static void say(String id, Object result) {
        System.out.print(id + ": ");
        System.out.println(result);
    }
    static Path base = Paths.get(".").toAbsolutePath().normalize();


    public static void main(String[] args) {
        System.out.println(base);
        System.out.println(base.getParent().getParent());
        System.out.println(base.relativize(base.getParent().getParent().resolve("a1").resolve("a2")).toAbsolutePath().normalize());


    }
}
